package com.kai.service.message.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kai.service.data.request.message.MessageBoardRequest;
import com.kai.service.data.request.message.PagingMessageBoardRequest;
import com.kai.service.data.response.message.MessageBoardResponse;
import com.kai.service.message.entity.MessageBoard;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 留言板 服务类
 * </p>
 *
 * @author wjk
 * @since 2022-04-19
 */
public interface IMessageBoardService extends IService<MessageBoard> {

    /**
     * 添加留言
     *
     * @param messageBoardRequest
     * @return
     */
    MessageBoardResponse createMessage(MessageBoardRequest messageBoardRequest);

    /**
     * 分页查询留言
     *
     * @param pagingMessageBoardRequest
     * @return
     */
    IPage<MessageBoardResponse> pagingMessage(PagingMessageBoardRequest pagingMessageBoardRequest);

    /**
     * 修改留言
     *
     * @param messageId
     * @param messageBoardRequest
     * @return
     */
    Boolean updateMessage(Integer messageId, MessageBoardRequest messageBoardRequest);

    /**
     * 删除留言
     *
     * @param messageId
     * @return
     */
    Boolean deleteMessage(Integer messageId);
}
